home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / mp3tunes / warn-no-converter.xul < prev   
Extensible Markup Language  |  2010-01-15  |  2KB  |  58 lines

  1. <?xml version="1.0"?> 
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://dwhelper/content/bindings.css" type="text/css"?>
  7.  
  8. <!DOCTYPE dialog SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  9.  
  10. <dialog id="dwhelper-mp3tunes-warn-no-converter"
  11.         title="&mp3tunes.title.no-converter;"
  12.         flex="1"
  13.         onload="onLoad()"
  14.         ondialogaccept="return onDialogEnd(1);"
  15.         ondialogcancel="return onDialogEnd(0);"
  16.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.         xmlns:html="http://www.w3.org/1999/xhtml"
  18.         buttonlabelaccept="&mp3tunes.button.no-converter.continue;"
  19.         buttonlabelextra2="&mp3tunes.button.no-converter.configure;"
  20.         ondialogextra2="onDialogEnd(2); window.close();"
  21.         buttons="cancel,accept,extra2">
  22.         
  23.     <html:style>
  24. #content {
  25.     width: 400px;
  26.     padding: 8px 8px 16px 8px;
  27. }
  28.     </html:style>
  29.  
  30.     <script><![CDATA[
  31. var Util=Components.classes["@downloadhelper.net/util-service;1"]
  32.     .getService(Components.interfaces.dhIUtilService);
  33. var prefService=Components.classes["@mozilla.org/preferences-service;1"]
  34.                                        .getService(Components.interfaces.nsIPrefService);
  35. var pref=prefService.getBranch("dwhelper.mp3tunes.");
  36.  
  37. function onLoad() {
  38. }
  39.  
  40. function onDialogEnd(result) {
  41.     window.arguments[0].result=result;
  42.     var notAgain=document.getElementById("not-again");
  43.     if(result==1 && notAgain.checked) 
  44.         pref.setBoolPref("show-no-converter-warning",false);
  45.     return true;
  46. }
  47.  
  48. ]]>
  49.     </script>
  50.  
  51.     <vbox id="content">
  52.         <description>&mp3tunes.text.no-converter.1;</description>
  53.         <description>&mp3tunes.text.no-converter.2;</description>
  54.         <checkbox id="not-again" label="&mp3tunes.label.no-converter.not-again;"/>
  55.     </vbox>
  56.  
  57. </dialog>
  58.